package com.yidu.controller;

import com.yidu.entity.AmModuleRole;
import com.yidu.service.AmModuleRoleService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 模块关联角色(AmModuleRole)表控制层
 *
 * @author wanghong
 * @since 2021-08-02 11:48:27
 */
@RestController
@RequestMapping("amModuleRole")
public class AmModuleRoleController {
    /**
     * 服务对象
     */
    @Autowired
    private AmModuleRoleService amModuleRoleService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public AmModuleRole selectOne(Integer id) {
        return this.amModuleRoleService.queryById(id);
    }

}
